package com.egdd.video.mapper;

import com.egdd.video.pojo.Category;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CategoryMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);


    Category selectByPrimaryKey(Integer id);


    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    /**
     * 获取所有分类列表
     * @return list
     */
    List<Category> getAll();
}
